package com.cskaoyan.duolai.clean.pay.client;

import com.cskaoyan.duolai.clean.pay.dto.OrderInfoDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 订单服务Feign客户端
 */
@FeignClient(name = "order", contextId = "order-service", path = "/order/inner/orders")
public interface OrderApi {

    /**
     * 根据订单ID获取订单信息
     *
     * @param orderId 订单ID
     * @return 订单信息
     */
    @GetMapping("/{orderId}")
    OrderInfoDTO getOrderById(@PathVariable("orderId") Long orderId);
}
